import request from '../index'
import {IPage} from '../user/index'

interface INotice {
    Id?:number,
    notice:string,
    date:string
}
export function getNotice(pageConfig:IPage,values:any) {
    return request({
        url:"notice/info",
        data:{
            values,
            pageConfig
        }
    })
}

export function addNotice(Notice:INotice) {
    return request({
        url:"notice/add",
        data:Notice
    })
}

export function editNotice(Notice:INotice) {
    return request({
        url:"notice/edit",
        data:Notice
    })
}

export function deleteNotice(Id:number) {
    return request({
        url:"Notice/delete",
        data:{
            Id
        }
    })
}